import request from '@/utils/request'

// 查询地址ip明细列表
export function listCityip(query,rou) {
  return request({
    url: '/ipmanagement/cityip/list/'+rou,
    method: 'get',
    params: query
  })
}

// 查询地址ip明细详细
export function getCityip(id) {
  return request({
    url: '/ipmanagement/cityip/' + id,
    method: 'get'
  })
}

// 新增地址ip明细
export function addCityip(data,rou) {
  return request({
    url: '/ipmanagement/cityip/'+rou,
    method: 'post',
    data: data
  })
}

// 修改地址ip明细
export function updateCityip(data,rou) {
  return request({
    url: '/ipmanagement/cityip/'+rou,
    method: 'put',
    data: data
  })
}

// 删除地址ip明细
export function delCityip(id) {
  return request({
    url: '/ipmanagement/cityip/' + id,
    method: 'delete'
  })
}
